﻿<%@ Page Title="Confirm" Theme="POSSystem" Language="C#" MasterPageFile="~/EditPages/Popup.Master" AutoEventWireup="true" CodeBehind="ConfirmReturn.aspx.cs" Inherits="WebUI.EditPages.ConfirmReturn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PopupHeadHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PopupToolbarHolder" runat="server">
    <script type="text/javascript">
        function closeW() {
            var rbYes = document.getElementById("<%= rbYes.ClientID %>");
            var rbNo = document.getElementById("<%= rbNo.ClientID %>");
            var rbCancel = document.getElementById("<%= rbCancel.ClientID %>");

            if(rbYes.checked)
                window.returnValue = 'yes';

            if (rbNo.checked)
                window.returnValue = 'no';

            if (rbCancel.checked)
                window.returnValue = 'cancel';

            window.close();

            return false;
        }
    </script>
    <table class="popuptoolbar" width="100%">
        <tr>
            <td style="vertical-align:middle; text-align:left">
                <asp:LinkButton class="tbbutton" ID="btnNew" runat="server" OnClientClick="return closeW();">
                    <img src="Images/CloseButton.gif" /><asp:Label ID="label1" runat="server" Text="Close"></asp:Label>
                </asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PopupContentHolder" runat="server">
    <center>
        <asp:RadioButton class='labelMessage0' ID="rbCancel" Text="Cancel Book Out" runat="server" GroupName="rb"/>
        <asp:RadioButton class='labelMessage0' ID="rbYes" Text="Create Invoice" runat="server" GroupName="rb" Checked="true"/>
        <asp:RadioButton class='labelMessage0' ID="rbNo" Text="Return As Unrepair" runat="server" GroupName="rb" />
    </center>
</asp:Content>
